package org.example.myleet.p1442;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(4 == solution.countTriplets(new int[]{2,3,1,6,7}));
        Assert.isTrue(10 == solution.countTriplets(new int[]{1,1,1,1,1}));
        Assert.isTrue(0 == solution.countTriplets(new int[]{2,3}));
        Assert.isTrue(0 == solution.countTriplets(new int[]{2}));
        Assert.isTrue(3 == solution.countTriplets(new int[]{1,3,5,7,9}));
        Assert.isTrue(8 == solution.countTriplets(new int[]{7,11,12,9,5,2,7,17,22}));
    }
}
